package com.example.fashionshoes.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class UserPasswordDTO {
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z]).{6,14}$",message = "密码需要在6-14位之间且必须包含数字和字母")
    private String newPassword;
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z]).{6,14}$",message = "密码需要在6-14位之间且必须包含数字和字母")
    private String oldPassword;
    @NotBlank(message = "确定密码不能为空")
    private String rePassword;
}
